package com.ckerchina.admin.ckadmin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面跳转
 */
@Controller
public class JspController {

	/**
	 * 登录跳转
	 */
	@RequestMapping(value = "/login")
	public String login() {
		return "login";
	}

	/**
	 * 页面跳转
	 */
	@RequestMapping(value = "/jsp/{jsp}")
	public String header(@PathVariable("jsp") String jsp) {
		return jsp;
	}

	/**
	 * 页面跳转
	 */
	@RequestMapping(value = "/jsp/{path}/{jsp}")
	public String header2(@PathVariable("path") String path, @PathVariable("jsp") String jsp) {
		return path + "/" + jsp;
	}
}